#ifndef NET_COM_H
#define NET_COM_H
#include "mainwindow.h"
#include <QThread>
#include <QUdpSocket>

class MainWindow;

class Com_Server : public QThread
{
Q_OBJECT
MainWindow *mw;
QUdpSocket *udp_sever;
QString debug_info;
public:
Com_Server(MainWindow * mw0);
void getLocalIP(void);
~Com_Server();
protected:
void run();
signals:

private slots:
void read_net_data();
};
#if 0
class Com_Client : public QThread
{
Q_OBJECT
MainWindow *mw;

public:
Com_Client(void);
Com_Client(MainWindow * mw);
~Com_Client();
protected:
void run();
signals:
};
#endif
#endif // NET_COM_H
